package saxion.speelveld.spaceengineer.controller;

import android.os.AsyncTask;

public class AsyncTaskManager
{
	private static AsyncTask asyncTask = null;

	public static AsyncTask.Status getAsyncTaskStatus()
	{
		if (asyncTask != null)
		{
			return asyncTask.getStatus();
		}
		else
		{
			return AsyncTask.Status.FINISHED;
		}
	}

	public static void setAsyncTask(AsyncTask asyncTask)
	{
		AsyncTaskManager.asyncTask = asyncTask;
	}
}
